<template>
  <div class="c-width c-dis-flex-col" style="padding:0px 20px 20px 20px">
    <div class="c-width c-dis-flex-col" v-if="qType==1" v-loading="qLoading">
      <div class="q-title" v-html="question.title"/>
      <div class="q-content c-dis-flex-col">
          <div :key="item.id" v-for="item in question.items" class="q-item-contain c-dis-flex-row">
            <span class="q-item-prefix" style="margin-right: 10px">{{item.prefix}}:</span>
            <span v-html="item.content" class="q-item-content c-flex"></span>
          </div>
      </div>
    </div>
    <div class="c-width c-dis-flex-col" v-else-if="qType==2" v-loading="qLoading">
      <div class="q-title" v-html="question.title"/>
      <div class="q-content c-dis-flex-col">
          <div :key="item.id" v-for="item in question.items" class="q-item-contain c-dis-flex-row">
            <span class="q-item-prefix" style="margin-right: 10px">{{item.prefix}}:</span>
            <span v-html="item.content" class="q-item-content c-flex"></span>
          </div>
      </div>
    </div>
    <div class="c-width c-dis-flex-col" v-else-if="qType==3" v-loading="qLoading">
      <div class="q-title" v-html="question.title" style="display: inline;margin-right: 10px"/>
      <div class="c-width c-dis-flex-row">
        <p>（</p>
          <span :key="item.id" v-for="item in question.items">
          <span v-html="item.content" class="q-item-content"></span>
         </span>
        <span>）</span>
      </div>
    </div>
    <div v-else-if="qType==4" v-loading="qLoading">
      <div class="q-title" v-html="question.title"/>
    </div>
    <div v-else-if="qType==5" v-loading="qLoading">
      <div class="q-title" v-html="question.title"/>
    </div>
    <div v-else>
    </div>
  </div>

</template>

<script>
export default {
  name: 'QuestionShow',
  props: {
    question: {
      type: Object,
      default: function () {
        return {}
      }
    },
    qLoading: {
      type: Boolean,
      default: false
    },
    qType: {
      type: Number,
      default: 0
    }
  },
  methods: {}
}
</script>
